import request from '@/utils/request'

export default {
    checkOldPsw(username,userpass) {
        return request({
            method:"post",
            url:"/dev-api/user/checkPsw",
            data:{username,userpass}
        })
    },
    editPsw(username, newPsw) {
        return request({
            method: "put",
            url:  "/dev-api/user/updataPsw",
            data: { username, newPsw }
        })
    }
}